home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Educational Software Cooperative 4
/
Educational Software Cooperative 4.iso
/
fraction
/
sfcdmath.inf
< prev
Wrap
INI File
|
1996-04-02
|
22KB
|
721 lines
;; INSTALIT SCRIPT FOR MATHOLOGY
DefineVariables
Text [CompanyName] := Veenetronics Corporation
Text [ProductName] := MATH Assault II: Fractions
Logical [OfferInstallationDirectoryChoice] := YesCharacter
Directory [DefaultInstallationDirectory] := FRACTION
Text [ModifyMode] := UNDECIDED
Number [MinimumFilesSetting] := 20 ;;CHANGE THIS AFTER TESTING!!!!!!!!!
Number [MinimumBuffersSetting] := 15
Directory [ReadmeFileName] := Read.Me
Logical [InquireAboutSystemFileLocation] := YesCharacter
Logical [AskBeforeFileReplacement] := YesCharacter
Text [ExitMessage] := Thanks!
Directory [ProgramToRun] :=
Logical [AddInstallDirectoryToPath] := YesCharacter
Text [MinimumOSVersion] := 2
Number [MinimumSystemMemoryRequiredPresent] := 640
Logical [AllowCGA] := NoCharacter
Logical [AllowMDA] := YesCharacter
Logical [Allow808x] := YesCharacter
Logical [Allow80286] := YesCharacter
Logical [MathCoprocessorRecommended] := NoCharacter
Logical [FixedDiskRequired] := YesCharacter
Text [NetWorkInstallation] := AllowNetwork
Logical [UseShadows] := YesCharacter
Text [MainBorder] := NONE
Text [PopupBorder] := SINGLE
Text [TopLine] := " INSTALLING [ProductName] "
Text [TopLineColors] := WhiteOnBrown
Text [BottomLineColors] := WhiteOnLightGray
Text [PopupColors] := WhiteOnCyan
Text [AttentionColors] := WhiteOnRed
Text [SpecialPopupColors] := WhiteOnBrown
Text [ExpressSetupDescription] := Install [ProductName]
Text [Speechchoice] := 'Choose the sound device installed in your computer
Logical [NeedToTerminate] := NoCharacter
Logical [Installed] := NoCharacter
Text [DisplayAdapterSummary] :=
Text [CPUTypeSummary] :=
Text [NetworkActive] :=
Text [MathCoprocessorStatus] :=
Text [InstallationDriveSummary] := c:\
Text [OSVersionSummary] := 2
Text [SystemMemorySummary] :=
Logical [InsufficientSystem] := NoCharacter
Logical [CompatibilityNoticeGiven] := NoCharacter
Logical [NeedToModify] := NoCharacter
Text [PathTask] :=
Text [BuffersTask] :=
Text [FilesTask] :=
Text [BackgroundCharacter] := BO
Text [ScreenColors] := WhiteOnBlue
Text [BottomLine] := " <F1> Help <F2> Visit DOS <F3> System Summary <F9> to Quit "
Number [systemmemory] :=
number [freeconventionalmemory] :=
number [freeEMSavailable] :=
number [freeXMSavailable] :=
Number [freeEMSmemory] :=
Number [freeXMSmemory] :=
Number [Size] := 6150000
text [soundcard] :=
text [soundcardext] :=
text [speechengine] :=
text [speechengineext] :=
text [remove] :=
text [nosound] :=
text [speechext] :=
text [soundcard2] :=
text [soundcard2ext] :=
text [soundcard3] :=
text [soundcard3ext] :=
text [fcave] :=
text [flight] :=
text [dict] :=
text [V4ENGH] :=
text [V4ENGR] :=
text [V4ENG11kD] :=
text [V4ENG11kI] :=
text [V4ENG11KP] :=
text [installationDrive&Directory] :=
text [linevariables] :=
;;Logical [fixSoundAutoexec] := NoCharacter
;;Logical [fixBlasterAutoexec] := NoCharacter
EndDefineVariables
ClearScreen
If Windows ;; INSTALIT for Windows does not currently support ScriptView
Popup This script was not designed for INSTALIT for Windows.
else ;; by default ScriptView is off
LetButton <F1> Do ShowHelpInfo
LetButton <F2> Do VisitOS
LetButton <F3> Do ShowSystemSummary
LetButton <F9> Do ExitInstallation
Dialog 2000 @xy(Center,Center)
Math Assault II: Fractions
copyright 1996 VeeneTronics Corp.
Enddialog
Clearscreen
TextBox @xy(Center,4)
Thanks for trying [ProductName].
EndTextBox
[installationDirectory] := c:\[DefaultInstallationDirectory];; needed to initialize
if VGA = NoCharacter .and. MCGA = NoCharacter
popup Sorry, this program runs only on a VGA or an MCGA monitor and computer.
do exitinstallation
endif
[systemmemory] := mainmemory * 1000
[freeconventionalmemory] := freerunmemory + 370000 ;;370000 represents the fudge factor
[freeEMSavailable] := expandedmemorypagesactive * 16000
[freeXMSavailable] := extendedmemoryavailable * 1000
[freeEMSmemory] := expandedmemorypagesavaailablefunction
[freeEMSmemory] := [freeEMSmemory] * 16000
[freeXMSmemory] := extendedmemorypresent * 1000
if [systemMemory] < 579000
popup Sorry, this program requires 640 kilobytes of conventional memory to run. This machine only has [systemmemory].
do exitinstallation
endif
if [freeconventionalmemory] < 512000
ClearScreen
Dialog [YesOrNo1] WhiteOnRed
This program requires 512000 bytes of conventional memory. Your computer
has only [freeconventionalmemory] bytes. You must unload system drivers
and other resident programs to free some more memory. Do you wish to continue with the installation?
EndDialog
if [YesorNo1] = NoCharacter
do exitinstallation
endif
endif
;;[string3] := a
;;while [string3] < z
;;if driveispresent [string3]
;; if driveisCdROM [string3]
;; [CDRomdrive] := [string3]
;; [string3] := y ;;inc next to z
;; endif
;;endif
;; incrementstring [string3]
;;endwhile
if (ExpandedMemoryPagesActive > 0) .or. (ExtendedMemoryPresent > 0)
Dialog [YesOrNo1] [SpecialPopupColors] ;; Use speech
Would you like to use speech?
EndDialog
If [YesOrNo1] = YesCharacter
[linevariables] := [linevariables] /A ;;speech installed
[speechengine] := speech.exe
[speechengineext] := /e
[remove] := remove.exe
[nosound] := nosound.exe
[fcave] := fcave.dic
[fcave] := fcave.dic
[flight] := flight.dic
[dict] := dict.par
[V4ENGH] := V4ENG.HSH
[V4ENGR] := V4ENG.RUL
[V4ENG11kD] := V4ENG11K.DMI
[V4ENG11kI] := V4ENG11K.INS
[V4ENG11KP] := V4ENG11K.PCM
GetMenuChoice @xy(Center,10) UseHeader "SPEECH"
Sound Blaster
;This includes Sound Blaster, Sound Blaster Pro, and Sound Blaster 16.
Standard Internal Speaker
;No Sound Card installed.
Adlib
Covox Speech Thing or Hearsay 100
Echo Pc II
PS/1 DAC
Tandy Sound System
IBM Speech Card
Sound Commander from MediaSonic Inc.
Disney Sound Source
Digi Speech DS201-A
;Note: Before running, the Digi Speech's driver must be loaded.
IBM ACPA
Media Vision
Finished
;Exit this installer and return
;to the operating system
EndGetMenuChoice
ClearScreen
InCase choice is
=1: ClearScreen
Dialog [YesOrNo1] WhiteOnRed
The default port setting for Sound Blaster is 220.
Older Sound Blaster IRQ is 7. The default IRQ interrupt is 5.
Do you accept these?
EndDialog
if [YesorNo1] = YesCharacter
[soundcard] := soundBST.exe
[soundcardext] := /p220 /i5
else
Dialog [String1]
Please enter the correct port: 210, 220, 230, 240, 250, or 260.
Default is 220.
EndDialog
Dialog [String2]
Please enter the correct IRQ (interrupt): 2, 3, 4, 5, 7, 10.
Older version is 7. Newer version is 5.
Enddialog
[soundcard] := soundBST.exe
[soundcardext] := /p[string1] /i[string2]
Endif
=2: [soundcard] := LH soundPWM.exe
=3: [soundcard] := LH soundADD.exe
=4: [soundcard] := LH soundCVX.exe
=5: [soundcard] := LH sounDEC2.exe
=6: [soundcard] := LH soundPS1.exe
=7: [soundcard] := LH soundTND.exe
=8: [soundcard] := LH soundIBM.exe
=9: [soundcard] := LH soundCMD.exe
=10: [soundcard] := LH soundDIN.exe
=11: [soundcard] := LH soundDIG.exe
=12: [soundcard] := LH soundACP.exe
=13: [soundcard] := LH SoundMV3.exe
=14: Do ExitInstallation
EndInCase
if [soundcard] = LH soundACP
[soundcard2] := Int4dApi
[soundcard2ext] := /N
[soundcard3] := Int4dApi
[soundcard3ext] := /R
endif
Endif
Endif
ClearScreen
Dialog [YesOrNo1] [SpecialPopupColors] ;; Calculator available
Make the calculator available for use?
EndDialog
If [YesOrNo1] = NoCharacter
[linevariables] := [linevariables] /C
else
Dialog [YesOrNo1] [SpecialPopupColors] ;; Fraction calculator available
Allow the calculator to do fractions?
The calculator can work as a regular calculator and as a fraction
calculator. It is recomended that you "not" allow players to use
the calculator as a fraction calculator.
Use the fraction calculator?
EndDialog
If [YesOrNo1] = NoCharacter
[linevariables] := [linevariables] /I
EndIf
EndIf
clearscreen
Dialog [YesOrNo1] [SpecialPopupColors] ;; Check for Deleting names
Would you like to prohibit players from deleting other players' names from
memory? If you choose "yes", the only way to delete names is by using the
name "teacher". If you choose "no", anyone can delete any names from memory.
EndDialog
If [YesOrNo1] = YesCharacter
[linevariables] := [linevariables] /D
EndIf
clearscreen
Dialog [YesOrNo1] [SpecialPopupColors] ;; Check for turning sound off
Start with the music ON?
EndDialog
If [YesOrNo1] = NoCharacter
[linevariables] := [linevariables] /M
EndIf
clearscreen
Dialog [YesOrNo1] [SpecialPopupColors] ;; Check review problems
Require players to take a review test?
Many players need more practice doing fraction problems after they
finish a level. Therefore a review practice test has been added
after each level, and a percentage score is included in the print out.
Would you like to require players to take a review test?
EndDialog
If [YesOrNo1] = YesCharacter
[linevariables] := [linevariables] /B
EndIf
If [AskBeforeFileReplacement] = NoCharacter
SetReplacementInquiry Off
EndIf
Do SetupInstalit
Do PrepareSystemReport
:Again
GetMenuChoice @xy(Center,10) UseHeader "MAIN MENU"
Install
;[ExpressSetupDescription]
Get a New Copy of a File
;Get a replacement copy of a file
Finished
;Exit this installer and return
;to the operating system
EndGetMenuChoice
ClearScreen
InCase choice is
=1: Do QueSelectedFiles ;;QueAllFiles
=2: Do GetNewCopyOfFile
GoTo Continue
=3: Do ExitInstallation
EndInCase
If QueSize = 0
GoTo Continue
EndIf
DetermineInstallationDrive RequireFixed [size];;quesize
[installationDirectory] := InstallationDrive:\[DefaultInstallationDirectory];;default value
DetermineInstallationDirectory RequireFixed [Size];;quesize installationdirectory now has real value
;;VerifyCorrectMedia [installfromdrive] volumeLabel=FRACTION
GetQuedFiles ShowJustOne ;;[ExtractionOptions]
[Installed] := YesCharacter
If QueSize <> 0 ;; Some files were selected but not installed if <> 0
[Installed] := NoCharacter
UnqueAllFiles ;; Remove uninstalled files from que
Dialog ;; Message when unable to get all necessary files
Unable to successfully complete this option.
EndDialog
EndIf
:Continue
do Exitinstallation
Procedure ShowHelpInfo
Dialog PressAKey [SpecialPopupColors] ;; How to reach technical support
For online assistance and registration send $15.00 to:
Veenetronics Corporation
3231 Cumberland Trail
Olympia Fields, Il 60461
You are installing
[ProductName].
You can get a summary of your computer system
by pressing <F3>. This information will be
important should you call Customer Service.
EndDialog
EndProcedure
Procedure ShowSystemSummary ;; System summary - change with care.
If [InstallationDirectory] <> BlankString
[InstallationDriveSummary] := InstallationDrive (FreeSpaceOnDrive InstallationDrive bytes free)
else
[InstallationDriveSummary] := (Not Selected)
EndIf
Dialog PressAKey [SpecialPopupColors]
.cHERE IS A SUMMARY OF YOUR SYSTEM
.c[String8] ;; notes whether any incompatibilities were found
Operating System Version: [OSVersionSummary]
CPU Type: [CPUTypeSummary]
Display Adapter: [DisplayAdapterSummary]
Math Coprocessor: [MathCoprocessorStatus]
Main Memory Present: [SystemMemorySummary]
Extended Memory Present: ExtendedMemoryPresentK
XMS Memory Available: XMSMemoryAvailableK
Installation Drive: [InstallationDriveSummary]
Network: [NetworkActive]
[String9] ;; information about network suitability
EndDialog
EndProcedure
Procedure QueSelectedFiles
QueFiles
ft.*
fraction.doc
*.txc
*.gxl
[speechengine]
[soundcard]
[remove]
[nosound]
[fcave]
[flight]
[dict]
[V4ENGH]
[V4ENGR]
[V4ENG11kD]
[V4ENG11kI]
[V4ENG11KP]
read.me
EndQuefiles
EndProcedure
Procedure PrepareSystemReport
[InsufficientSystem] := NoCharacter
If OSVersion < [MinimumOSVersion]
[OSVersionSummary] := OSVersion (need at least [MinimumOSVersion])
[InsufficientSystem] := YesCharacter
else
[OSVersionSummary] := OSVersion
EndIf
If MainMemory < [MinimumSystemMemoryRequiredPresent]
[SystemMemorySummary] := MainMemoryK (need at least [MinimumSystemMemoryRequiredPresent]K)
[InsufficientSystem] := YesCharacter
else
[SystemMemorySummary] := MainMemoryK
EndIf
If 808X
If [Allow808X] = YesCharacter
[CPUTypeSummary] := 808x
else
[CPUTypeSummary] := 808x (not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If 80286
[CPUTypeSummary] := 80286
EndIf
If 80386
[CPUTypeSummary] := 80386
EndIf
If 80486
[CPUTypeSummary] := 80486
EndIf
If [CPUTypeSummary] = BlankString
[CPUTypeSummary] := 808x
EndIf
If MicroChannel
[CPUTypeSummary] := [CPUTypeSummary] (in MicroChannel Architecture)
else
[CPUTypeSummary] := [CPUTypeSummary] (ISA or EISA Architecture)
EndIf
If CGA
If [AllowCGA] = YesCharacter
[DisplayAdapterSummary] := CGA
else
[DisplayAdapterSummary] := CGA (not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If MDA
If [AllowMDA] = YesCharacter
[DisplayAdapterSummary] := MDA
else
[DisplayAdapterSummary] := MDA (not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If EGA
[DisplayAdapterSummary] := EGA
EndIf
If VGA
[DisplayAdapterSummary] := VGA
EndIf
If HGC
[DisplayAdapterSummary] := HGC
EndIf
If HGCPlus
[DisplayAdapterSummary] := HGC Plus
EndIf
If Network
[NetworkActive] := Network Active
else
[NetworkActive] := No Network Active
EndIf
If NovellLoaded
[NetworkActive] := Novell [NetworkActive]
EndIf
If MathCoprocessorPresent
[MathCoprocessorStatus] := Present
else
If [MathCoprocessorRecommended] = YesCharacter
[MathCoprocessorStatus] := Not Present But Recommended
If [CompatibilityNoticeGiven] = YesCharacter
else
Dialog ;; Notice if math coprocessor recommended
[ProductName] needs a math coprocessor
for best performance. Your system does not
contain one.
EndDialog
EndIf
else
[MathCoprocessorStatus] := Not Present
EndIf
EndIf
If [InsufficientSystem] = YesCharacter
[String8] := (Please note the listed incompatibilities)
EndIf
If [NetworkInstallation] contains DisallowNetwork
[String9] := " (You cannot install this version on a network drive)"
EndIf
[CompatibilityNoticeGiven] := YesCharacter
EndProcedure
Procedure GetNewCopyOfFile
:StartOver
determineinstallationdrive requirefixed showadequatedrives
[installationDirectory] := installationDrive:\[DefaultinstallationDirectory]
determineinstallationdirectory quesize requirefixed ;;size
Dialog [String4] 12 UseHeader "Getting a single file" UpperCase
Please enter the name of the file
you need a new copy of or leave
blank to exit.
EndDialog
If [String4] = BlankString
Exit
EndIf
If [String4] contains \
Popup Please enter just the file name with no path.
GoTo StartOver
EndIf
If FileIsInLibrary [String4]
else
Popup Cannot find a file named [String4].
GoTo StartOver
EndIf
QueFiles
[String4]
EndQueFiles
GetQuedFiles ShowJustOne ;;[ExtractionOptions]
EndProcedure
Procedure VisitOS
Dialog [YesOrNo1] [SpecialPopupColors] ;; Notice before exiting to OS
Do you wish to exit to the operating system and
then return?
EndDialog
If [YesOrNo1] = YesCharacter
ExitToDOS
EndIf
EndProcedure
Procedure ExitInstallation
ClearScreen
If [Installed] = YesCharacter
[number2] := lengthof [installationdirectory]
[string1] := substringof [installationdirectory] from 4 to [number2]
[linevariables] := [linevariables] %1 %2 %3 %4 %5
;; Create special config file to hold drive and directory
;; createfile [Installationdirectory]\fconfig.txt ;;insures old file is erased
;; appendfile [InstallationDirectory]\fconfig.txt
;; [InstallationDirectory]\
;; endappendfile
createfile [Installationdirectory]\fract.bat ;;insures old file is erased
appendfile [InstallationDirectory]\fract.bat
@echo off
InstallationDRIVE:
cd\[string1]
[soundcard2] [soundcard2ext]
[soundcard] [soundcardext]
[speechengine] [speechengineext]
[InstallationDirectory]\ft[linevariables] ;;/L[InstallationDirectory]\;;[speechext][calculator][deletenames][musicoff] %1 %2 %3 %4 %5
@echo off
[remove]
[nosound]
[soundcard3] [soundcard3ext]
InstallationDRIVE:\
endappendfile
openCopyWindow
;; popup [installFromDirectory] [installationDirectory]
if [installFromDirectory] <> [installationDirectory]\
CopyFiles from [installFromDirectory] to [installationDirectory]
*.gxl
order.frm
EndCopyfiles
endif
closeCopyWindow
[Number1] := [MinimumBuffersSetting] + [MinimumFilesSetting]
If [MinimumFilesSetting] < 20
popup In config.sys set FILES=[minimumFilesSetting] at a minimum
Endif
If [MinimumBuffersSetting] < 10
popup In config.sys set BUFFERS=[minimumBuffersSetting] at a minimum
EndIf
if [speechengine] = speech.exe
Dialog
If the program doesn't work, check the memory requirements in Read.Me
or Fraction.doc. Also remove any conflicting TSR's. If the program
still doesn't work, reinstall without speech.
EndDialog
EndIf
;; if [fixBlasterAutoExec] = YesCharacter
;; popup In Autoexec.bat add: "Set Blaster=A220 I7 D1 T1" at beginning
;; ModifyAutoexecbat
;; AddorChangeLineWith (blaster,,) as "Set Blaster=A220 I7 D1 T1" at beginning
;; EndModifyAutoexecBat
;; endif
;; ModifyAutoexecBat
;; AddPathComponent [InstallationDirectory] at End ;; or "at Beginning"
;; EndModifyAutoexecBat
;; If BootFilesModified
;; else
;; Dialog
;; No changes were necessary to AUTOEXEC.BAT or CONFIG.SYS.
;; EndDialog
;; EndIf
EndIf
EndIf
If [ProgramToRun] <> BlankString
Dialog [YesOrNo1] ;; Explains purpose of program to be run, if any
[ProgramToRun] does <insert purpose here>.
Do you wish to run it now?
EndDialog
If [YesOrNo1] = YesCharacter
Run [ProgramToRun] SwapOut
If OSErrorCode <> 0
Dialog ;; Message if OS unable to Run program
Unable to run [ProgramToRun].
Error code was OSErrorCode.
EndDialog
else
If OSExitCode <> 0
Dialog ;; Message if program ran but returned non-zero code
[ProgramToRun] executed but was not successful.
Return code OSExitCode.
EndDialog
EndIf
EndIf
EndIf
EndIf
Clearscreen
If [ReadmeFileName] <> BlankString
ChangeDirectoryTo [InstallationDirectory] ;;InstallationDrive
Dialog [YesOrNo1] ;; Ask whether to browse readme file, if any
[ReadmeFileName] contains important information.
Do you wish to read it now?
EndDialog
If [YesOrNo1] = YesCharacter
If FileExists [ReadmeFileName]
BrowseFile [ReadmeFileName]
else
Popup Sorry, read.me file [ReadMeFileName] is missing.
EndIf
EndIf
EndIf
Dialog
To begin the program, type fract
endDialog
Dialog ;; Final Farewell
Thanks for using [ProductName]!
If you find this product useful, please
register or consider an upgrade with more features.
EndDialog
SoLong
EndProcedure
Procedure SetupInstalit
SetScreenAttrTo [ScreenColors]
SetBackgroundCharTo B1 ;;[BackgroundCharacter]
Do PrepareSystemReport
If [UseShadows] = YesCharacter
SetShadows On
else
SetShadows Off
EndIf
If [InquireAboutSystemFileLocation] = NoCharacter
NoSysFileConfirmation
EndIf
SetMainBorderTo [MainBorder]
SetPopupBorderTo [PopupBorder]
SetModifyModeTo UNdecided ;;[ModifyMode]
SetShadowAttrTo DarkGrayOnBlack
SetScreenAttrTo [ScreenColors]
SetPopupAttrTo [PopupColors]
SetAttentionAttrTo [AttentionColors]
SetTopLineAttrTo [TopLineColors]
SetBottomLineAttrTo [BottomLineColors]
SetBottomLineTo " <F1> Help <F2> Visit DOS <F3> System Summary <F9> to Quit "
SetTopLineTo [TopLine]
SetExitMessageTo [ExitMessage]
SetAllowExit Off
EndProcedure
If Windows
SetBackgroundColor 0 0 255 0 0 64 TopToBottom
EndIf
Dialog
Let's do the <product name> installation.
EndDialog
QueAllFiles
GetQuedFiles
Dialog
Thanks for your business!
EndDialog